-- GENERATED SPELL FOR [Gjalerbron Gargoyle] --


function spell0_24440(pUnit, Event) --@Gargoyle Strike,n/a--
pUnit:FullCastSpellOnTarget(43803,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24440', 1500, 1)
end

function spell1_24440(pUnit, Event) --@Gargoyle Strike,n/a--
pUnit:FullCastSpellOnTarget(43804,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24440', 583, 1)
end

function Sorts_24440(pUnit, Event)
local choix_sorts_24440 = math.random(0, 1)
if choix_sorts_24440 == 0 then
pUnit:RegisterEvent('spell0_24440', 1, 1)
end
if choix_sorts_24440 == 1 then
pUnit:RegisterEvent('spell1_24440', 1, 1)
end
end

function mob24440_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24440', math.random(1500, 3000), 1)
end

function mob24440_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24440_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24440_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24440, 1, 'mob24440_Action')
RegisterUnitEvent(24440, 2, 'mob24440_Leave')
RegisterUnitEvent(24440, 3, 'mob24440_Kill')
RegisterUnitEvent(24440, 4, 'mob24440_Die')
